<template>
  <view class="container">
    <filter-bar />
    <view class="variety-list">
      <view class="section-title">热门综艺</view>
      <view class="variety-grid">
        <navigator
          class="variety-card" 
          v-for="i in 4" 
          :key="i"
          url="/pages/plotDetails/index"
          hover-class="none"
        >
          <image class="variety-poster" src="/static/logo.png" mode="aspectFill" />
          <view class="variety-info">
            <text class="variety-title">综艺节目标题</text>
            <text class="variety-rating">9.0</text>
          </view>
        </navigator>
      </view>

      <view class="section-title">即将播出</view>
      <view class="variety-grid">
        <navigator
          class="variety-card" 
          v-for="i in 4" 
          :key="i"
          url="/pages/plotDetails/index"
          hover-class="none"
        >
          <image class="variety-poster" src="/static/logo.png" mode="aspectFill" />
          <view class="variety-info">
            <text class="variety-title">综艺节目标题</text>
            <text class="variety-date">2024-03-01</text>
          </view>
        </navigator>
      </view>
    </view>
  </view>
</template>

<script setup lang="ts">
import FilterBar from '../../components/FilterBar.vue';
// 后续将添加综艺数据获取和状态管理
</script>

<style lang="scss">
.container {
  padding: 20rpx;
}

.variety-list {
  .section-title {
    font-size: 32rpx;
    font-weight: bold;
    margin: 20rpx 0;
  }

  .variety-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20rpx;
    margin-bottom: 30rpx;
  }

  .variety-card {
    background: #fff;
    border-radius: 12rpx;
    overflow: hidden;
    box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.1);

    .variety-poster {
      width: 100%;
      height: 400rpx;
    }

    .variety-info {
      padding: 16rpx;

      .variety-title {
        font-size: 28rpx;
        color: #333;
        display: block;
      }

      .variety-rating,
      .variety-date {
        font-size: 24rpx;
        color: #666;
        margin-top: 8rpx;
        display: block;
      }

      .variety-rating {
        color: #ff9900;
      }
    }
  }
}
</style>